package entity;

import java.util.Date;
import java.io.Serializable;

/**
 * (Patient)实体类
 *
 * @author makejava
 * @since 2025-03-14 12:19:33
 */

public class Patient implements Serializable {
    private static final long serialVersionUID = -37997187752095624L;

    private Integer patientId;

    private String password;

    private Date birthdate;

    private String gender;

    private String patientName;

    private String phoneNum;

    private String email;

    private String identityNum;

    private String address;

    public Patient() {
    }

    public Patient(Integer patientId, String password, Date birthdate, String gender, String patientName, String phoneNum, String email, String identityNum, String address) {
        this.patientId = patientId;
        this.password = password;
        this.birthdate = birthdate;
        this.gender = gender;
        this.patientName = patientName;
        this.phoneNum = phoneNum;
        this.email = email;
        this.identityNum = identityNum;
        this.address = address;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getIdentityNum() {
        return identityNum;
    }

    public void setIdentityNum(String identityNum) {
        this.identityNum = identityNum;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return
                "病人编号: " + patientId +
                ", 病人密码: " + password +
                ", 出生日期: " + birthdate +
                ", 病人性别: " + gender +
                ", 病人姓名: " + patientName +
                ", 手机号: " + phoneNum +
                ", 邮箱: " + email +
                ", 身份证号: " + identityNum +
                ", 地址: " + address
                ;
    }
}

